home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Register for Idle
- Sent: 4/4/96 4:04 PM
- Received: 4/4/96 1:26 PM
- From: Lars Travers, ltravers@igc.apc.org
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Karl Jepsen wrote:
- >
- > >When our part is initialized, we register for idle events with the
- > >RegisterIdle call. When we terminate our part, we get the assert debug
- > >message fIdleCount == 0. Trying to eliminate this debug message, we called
- > >the UnRegisterIdle method in our part's destructor. Now we get the debug
- > >message fIdleCount >=1 followed by fIdleCount == 0. What is the
- > >significant of these assert messages and what is the proper way to handle
- > >unregistering for idle events?
- > >
- Henri Lamiraux wrote:
- >
- > It looks like your part is like ODFClock. ODFClock only calls
- > RegisterIdle in the Initialize method. You should not have to call
- > UnregisterIdle. It looks like you are registering something else for idle
- > or registering something multiple time. Check ODFClock.
-
- I have the same problem. I have referred to ODFClock and I think I am
- doing things the same way. I only call RegisterIdle(ev, 15) once in my
- part's Initialize function and never unregister, yet the problem persists.
- Does anyone have any other suggestions or insights?
-
- Lars Travers
-